package link.cocoon.blog.mapper;

import java.util.List;
import link.cocoon.blog.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Cocoon
 * @since 2020-03-31
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

  /**
   * 根据parentId获取ids
   * @param idList id集合
   * @return 下级id
   */
  List<Long> selectChildrenIdsInIds(List<Long> idList);

}
